package com.example.demo111.service.impl;

public class KNode
{
	private float mDistance = Float.MAX_VALUE;
	private int type = -1;

	public KNode()
	{
		mDistance = Float.MAX_VALUE;
		type = -1;
	}

	public KNode(float d, int type)
	{
		mDistance = d;
		this.type = type;
	}

	public void reset()
	{
		mDistance = Float.MAX_VALUE;
		type = -1;
	}

	public float getD()
	{
		return mDistance;
	}

	public int getType()
	{
		return type;
	}
}
